package com.example.result.books

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

@Parcelize
class Book(
    val parentPath: String,
    val name: String,
    val isDir: Boolean,
    val totalSpace: Long = 0L,
    val modifiedTime: Long = 0L,
) : Parcelable {
    fun path() = if (parentPath.endsWith("/")) "$parentPath$name" else "$parentPath/$name"
}